﻿import { NgModule } from '@angular/core';

import { SharedModule } from '@shared/shared.module';
import { RouteRoutingModule } from './routes-routing.module';
// 用户
import { UsersComponent } from './users/users.component';
import { CreateUserComponent } from './users/create-user.component';
import { EditUserComponent } from './users/edit-user.component';
// 栏目
import { ChannelComponent } from './channel/channel.component';
import { CreateChannelComponent } from './channel/create-channel.component';
import { EditChannelComponent } from './channel/edit-channel.component';

//ChannelGroup
import { ChannelGroupComponent } from './channelgroup/channelgroup.component';
import { CreateChannelGroupComponent } from './channelgroup/create-channelgroup.component';
import { EditChannelGroupComponent } from './channelgroup/edit-channelgroup.component';
//Role
import { RoleComponent } from './role/role.component';
import { CreateRoleComponent } from './role/create-role.component';
import { EditRoleComponent } from './role/edit-role.component';
//Department
import { DepartmentComponent } from './department/department.component';
import { CreateDepartmentComponent } from './department/create-department.component';
import { EditDepartmentComponent } from './department/edit-department.component';
//News
import { NewsComponent } from './news/news.component';
import { ListNewsComponent } from './news/list-news.component';
import { CreateNewsComponent } from './news/create-news.component';
import { EditNewsComponent } from './news/edit-news.component';
// Setting
import { SettingComponent } from './setting/setting.component';
//Category
import { CategoryComponent } from './category/category.component';
import { CreateCategoryComponent } from './category/create-category.component';
import { EditCategoryComponent} from './category/edit-category.component';
//Product
import { ProductComponent } from './product/product.component';
import { ListProductComponent } from './product/list-product.component';
import { CreateProductComponent } from './product/create-product.component';
import { EditProductComponent} from './product/edit-product.component';
//AlipaySetting
import { AlipaySettingComponent } from './alipaysetting/alipaysetting.component';
//WeixinSetting
import { WeixinSettingComponent } from './weixinsetting/weixinsetting.component';
// CodeGeneration_Bookmark_Import代码生成书签勿删除

// passport pages
import { UserLoginComponent } from './passport/login/login.component';
import { UserRegisterComponent } from './passport/register/register.component';
import { UserRegisterResultComponent } from './passport/register-result/register-result.component';
// single pages
import { CallbackComponent } from './callback/callback.component';
import { UserLockComponent } from './passport/lock/lock.component';
import { Exception403Component } from './exception/403.component';
import { Exception404Component } from './exception/404.component';
import { Exception500Component } from './exception/500.component';
import { CKEditorModule } from '@ckeditor/ckeditor5-angular';


const COMPONENTS = [
  // 用户管理
  UsersComponent,
  CreateUserComponent,
  EditUserComponent,
  // 栏目
  ChannelComponent,
  CreateChannelComponent,
  EditChannelComponent,

  //ChannelGroup
  ChannelGroupComponent,
  CreateChannelGroupComponent,
  EditChannelGroupComponent,
  //Role
  RoleComponent,
  CreateRoleComponent,
  EditRoleComponent,
  //Department
  DepartmentComponent,
  CreateDepartmentComponent,
  EditDepartmentComponent,
  //News
  NewsComponent,
  ListNewsComponent,
  CreateNewsComponent,
  EditNewsComponent,
  // Setting
  SettingComponent,
  //Category
  CategoryComponent,
  CreateCategoryComponent,
  EditCategoryComponent,
  //Product
  ProductComponent,
  ListProductComponent,
  CreateProductComponent,
  EditProductComponent,
  //AlipaySetting
  AlipaySettingComponent,
  //WeixinSetting
  WeixinSettingComponent,
// CodeGeneration_Bookmark_Components代码生成书签勿删除

  // passport pages
  UserLoginComponent,
  UserRegisterComponent,
  UserRegisterResultComponent,
  // single pages
  CallbackComponent,
  UserLockComponent,
  Exception403Component,
  Exception404Component,
  Exception500Component
];
const COMPONENTS_NOROUNT = [];

@NgModule({
  imports: [SharedModule, RouteRoutingModule,CKEditorModule],
  declarations: [
    ...COMPONENTS,
    ...COMPONENTS_NOROUNT
  ],
  entryComponents: COMPONENTS_NOROUNT
})
export class RoutesModule { }
